<html><head><title>ParseXML</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">ParseXML()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#006666"><b>ParseXML</b></font>(#XML, Input$)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Creates a new XML tree from XML data in the string. The XML is expected to be encoded 
in the string format of the executable (Ascii or Unicode). If another encoding needs to 
be parsed, the <a href="catchxml.html">CatchXML()</a> function can be used instead. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#XML</i></td>
<td width="90%"> 
A number to identify the new XML. 
<a href="../reference/purebasic_objects.html">#PB_Any</a> can be used to auto-generate this number. 

</td></tr>
<tr><td><i>Input$</i></td>
<td> 
The string containing the XML to parse. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

This function only returns zero on memory errors. 
To check for parser errors <a href="xmlstatus.html">XMLStatus()</a> should be used. 
In case of a parsing error, all data parsed before the error is accessible in the XML tree. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="freexml.html">FreeXML()</a>, <a href="createxml.html">CreateXML()</a>, <a href="loadxml.html">LoadXML()</a>, <a href="parsexml.html">ParseXML()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=parentxmlnode.html>ParentXMLNode()</a> - <a href=index.html>XML Index</a> - <a href=previousxmlnode.html>PreviousXMLNode()</a> ->

</body></html>